<!--
// +----------------------------------------------------------------------
// | Copyright (c) 2017 https://gitee.com/honoryao All rights reserved.
// +----------------------------------------------------------------------
// | Author: honoryao <2463523099@qq.com>
// +----------------------------------------------------------------------
// | Time: 2018/6/8   
// +----------------------------------------------------------------------
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>propsData Option  全局扩展的数据传递</title>
</head>
<body>
<h1>propsData Option  全局扩展的数据传递</h1>
<hr>
<header></header>

<script src="../assets/js/vue.js"></script>
<script>
    var  header_a = Vue.extend({
        template:`<p>{{message}}</p>`,
        data:function(){
            return {
                message:'Hello,I am Header'
            }
        }
    });
    new header_a().$mount('header');

    var  header_a = Vue.extend({
        template:`<p>{{message}}-{{a}}</p>`,
        data:function(){
            return {
                message:'Hello,I am Header'
            }
        },
        props:['a']
    });
    new header_a({propsData:{a:1}}).$mount('header');
</script>
</body>
</html>